package cn.edu.hbsi.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

@Data
@ApiModel(description = "新闻分页查询参数")
public class NewsPageDTO
{
    @ApiModelProperty(value = "搜索标题关键字")
    private String keyWords; //搜索标题关键字

    @ApiModelProperty(value = "新闻类型")
    private Integer type; //新闻类型

    @ApiModelProperty(value = "页码数")
    @Value("1")
    private Integer pageNum; //页码数

    @ApiModelProperty(value = "每页大小")
    @Value("10")
    private Integer pageSize;   //页大小
}
